package com.kws.system.mapper.payment;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.kws.system.domain.payment.TbOrder;
import com.kws.system.domain.payment.info.QueryCommodityPayOrderInfo;
import com.kws.system.domain.payment.info.QueryServerOrderInfo;
import com.kws.system.domain.payment.rq.QueryCommodityPayOrderRq;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderManagementMapper extends BaseMapper<TbOrder> {
    Page<QueryCommodityPayOrderInfo> queryCommodityPayOrderPage(@Param("page") Page<QueryCommodityPayOrderInfo> page, @Param("query") QueryCommodityPayOrderRq query);

    QueryCommodityPayOrderInfo queryCommodityPayOrderById(@Param("id") Long id);

    Page<QueryServerOrderInfo> queryServerOrderPage(@Param("page") Page<QueryServerOrderInfo> page, @Param("query") QueryCommodityPayOrderRq query);

    QueryServerOrderInfo queryServerOrderById(@Param("id") Long id);

    List<QueryServerOrderInfo> queryServerOrderList(@Param("id") Long id, @Param("itemId") Long itemId);
}
